Release 10.1A: OpenEdge Development:
Progress 4GL Reference
GET-DOUBLE function
Returns the 8-byte floating-point value at the specified memory location as a DECIMAL.
Syntax
sourceA function or variable that returns a RAW or MEMPTR value. If
sourceis the Unknown value (?), GET-DOUBLE returns the Unknown value (?).positionAn integer value greater than 0 that indicates the byte position where you want to find the information. If
Examplespositionis greater than the length ofsource, Progress returns the Unknown value (?). Ifpositionis less than 1, Progress generates a run-time error.For examples of how to use the GET-DOUBLE function, see the GET-BYTE function reference entry.
Notes
- This function supports byte-swapping only if
sourceis a MEMPTR data type. The function will first examine the byte-order setting of the MEMPTR and then swap the bytes appropriately before interpreting them. Progress does not swap the bytes in the MEMPTR’s memory, but does the byte-swap as it creates the return value.- For more information on using the MEMPTR data type, see OpenEdge Development: Programming Interfaces .
- For more information on using the RAW data type, see OpenEdge Development: Programming Interfaces .
See also
LENGTH function, PUT-DOUBLE statement, RAW function, RAW statement, SET-SIZE statement
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |